'''
Basic information about supported languages.
'''

# To view a list of available QScintilla lexers:
# import PyQt4.Qsci
# langs = [i for i in dir(PyQt4.Qsci) if i.startswith('QsciLexer')]
#
# for i, l in enumerate(langs):
#    print i, l[9:]

from PyQt4 import Qsci

class C:
    name = 'C'
    suffix = '.c'
    # QScintilla doesn't have a C lexer.  We'll use C++ for now.
    lexer = Qsci.QsciLexerCPP

class Cpp:
    name = 'C++'
    suffix = '.cpp'
    lexer = Qsci.QsciLexerCPP

class CSharp:
    name = 'C#'
    suffix = '.cs'
    lexer = Qsci.QsciLexerCSharp

class Html:
    name = 'HTML'
    suffix = '.html'
    lexer = Qsci.QsciLexerHTML

class JavaScript:
    name = 'JavaScript'
    suffix = '.js'
    lexer = Qsci.QsciLexerJavaScript

class Perl:
    name = 'Perl'
    suffix = '.pl'
    lexer = Qsci.QsciLexerPerl

class Python:
    name = 'Python'
    suffix = '.py'
    lexer = Qsci.QsciLexerPython
